package cn.quevo.cube.provide.define.enums;

import cn.quevo.common.enums.EnumsInterface;

/**
 * 文件类型
 *
 * @author July july_sky@foxmail.com
 * @version 1.0
 * @date 2018/12/11 3:52 PM
 * @Copyright 湘豫（北京）科技有限公司版权所有.All Rights Reserved.
 */
public enum FileTypes implements EnumsInterface {
    IMG("img", "jpg,jpeg,png,gif"),
    VIDEO("video", "avi,wmv,mpeg,mp4,mov,mkv,flv,f4v,m4v,rmvb,rm,3gp,dat,ts,mts,vob"),
    DOC("doc", "txt,pdf,doc,docx,xls,xlsx"),
    FILE("file", "img,video,doc,all");

    private String code;
    private String value;

    FileTypes(String code, String value) {
        this.code = code;
        this.value = value;
    }

    @Override
    public String getCode() {
        return this.code;
    }

    @Override
    public String getValue() {
        return this.value;
    }
}
